import React from 'react'
import path from 'path'
import { render } from 'react-dom'
import DataEditor from './components/DataEditor'
import { ipcRenderer } from 'electron'
// import { GlobalStyle } from './styles/GlobalStyle'
import './styles/style.less'
// import { Titlebar, Color } from "custom-electron-titlebar"

// import Greetings from './components/Greetings'
export const AppName = '通用数据编辑器'

const mainElement = document.createElement('div')
mainElement.setAttribute('id', 'root')
document.body.appendChild(mainElement)
document.title = AppName

render(<DataEditor />, mainElement) 
